import Vue from '../vue'
import store from '../vuex/store'
import CRUD from '../component/activity/activity-crud/activity-crud.vue'
import ActivityList from '../component/activity/activity-list/activity-list.vue'
import loginCheck from '../util/login-check'
import { alert } from 'vue-strap'

new Vue({
  el: 'body',
  components: {
    'vue-activity-crud': CRUD,
    'vue-activity-list': ActivityList,
    'vue-alert-msg': alert
  },
  store,
  created() {
    loginCheck(this)
  },
  vuex: {
    getters: {
      msg: state => state.msg,
      menu: state => state.menuList.activity
    }
  }
})
